<?php
class ModelCoreLog extends Model
{
	public function getList($where="")
	{
		$sql="Select * from `log` WHERE 1=1 ".$where;
		$query = $this->db->query($sql);
		return $query->rows;
	}
	
	public function getItem($id)
	{
		$id=$this->db->escape(@$id);
		$query = $this->db->query("Select * from `log` where id = '".$id."'");
		return $query->row;
	}
	

}
?>